﻿using MXComponent.Views.charview;
using MXComponent.Views.formula;
using MXComponent.Views.material;
using MXComponent.Views.materialwarehouse;
using MXComponent.Views.system;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MXComponent.Api
{
    public class PageManager
    {
        #region 物料

        private static materialList materiallist;

        /// <summary>
        /// 物料
        /// </summary>
        public static materialList Materiallist
        {
            get
            {
                if (materiallist == null)
                {
                    //只会被构造一次
                    materiallist = new materialList();
                }
                return materiallist;
            }
            set { materiallist = value; }
        }

        #endregion 物料

        #region 料仓

        private static materialwarehouseList materialwarehouselist;

        /// <summary>
        /// 物料
        /// </summary>
        public static materialwarehouseList Materialwarehouselist
        {
            get
            {
                if (materialwarehouselist == null)
                {
                    //只会被构造一次
                    materialwarehouselist = new materialwarehouseList();
                }
                return materialwarehouselist;
            }
            set { materialwarehouselist = value; }
        }

        #endregion 料仓

        #region 配方

        private static formulaList formulalist;

        /// <summary>
        /// 物料
        /// </summary>
        public static formulaList Formulalist
        {
            get
            {
                if (formulalist == null)
                {
                    //只会被构造一次
                    formulalist = new formulaList();
                }
                return formulalist;
            }
            set { formulalist = value; }
        }

        #endregion 配方

        #region 密码修改

        private static ChangePasswordPage changePPage;

        /// <summary>
        /// 物料
        /// </summary>
        public static ChangePasswordPage ChangePPage
        {
            get
            {
                if (changePPage == null)
                {
                    //只会被构造一次
                    changePPage = new ChangePasswordPage();
                }
                return changePPage;
            }
            set { changePPage = value; }
        }

        #endregion 密码修改

        #region 配方下发

        private static formuladown fdown;

        /// <summary>
        /// 物料
        /// </summary>
        public static formuladown Fdown
        {
            get
            {
                if (fdown == null)
                {
                    //只会被构造一次
                    fdown = new formuladown();
                }
                return fdown;
            }
            set { fdown = value; }
        }

        #endregion 配方下发
        #region 物料统计

        private static materialChar mchar;

        /// <summary>
        /// 物料
        /// </summary>
        public static materialChar Mchar
        {
            get
            {
                if (mchar == null)
                {
                    //只会被构造一次
                    mchar = new materialChar();
                }
                return mchar;
            }
            set { mchar = value; }
        }

        #endregion 物料统计


        #region 物料统计

        private static formulaChar fchar;

        /// <summary>
        /// 物料
        /// </summary>
        public static formulaChar Fchar
        {
            get
            {
                if (fchar == null)
                {
                    //只会被构造一次
                    fchar = new formulaChar();
                }
                return fchar;
            }
            set { fchar = value; }
        }

        #endregion 物料统计

        #region 物料统计

        private static formulaReport freport;

        /// <summary>
        /// 物料统计
        /// </summary>
        public static formulaReport Freport
        {
            get
            {
                if (freport == null)
                {
                    //只会被构造一次
                    freport = new formulaReport();
                }
                return freport;
            }
            set { freport = value; }
        }

        #endregion 物料统计

        #region 物料明细统计

        private static formulaDetail fdetail;

        /// <summary>
        /// 物料明细统计
        /// </summary>
        public static formulaDetail Fdetail
        {
            get
            {
                if (fdetail == null)
                {
                    //只会被构造一次
                    fdetail = new formulaDetail();
                }
                return fdetail;
            }
            set { fdetail = value; }
        }

        #endregion 物料统计
    }
}